package wifiunion.com.notice.widget.treedialog.entity;


import wifiunion.com.notice.widget.treedialog.annotation.TreeNodeChecked;
import wifiunion.com.notice.widget.treedialog.annotation.TreeNodeId;
import wifiunion.com.notice.widget.treedialog.annotation.TreeNodeLabel;
import wifiunion.com.notice.widget.treedialog.annotation.TreeNodePid;

public class FileBean {
	@TreeNodeId
	private int _id;
	@TreeNodePid
	private int parentId;
	@TreeNodeLabel
	private String name;

	@TreeNodeChecked
	private int checked;

	private long length;
	private String desc;

	public FileBean(int _id, int parentId, String name) {
		super();
		this._id = _id;
		this.parentId = parentId;
		this.name = name;
		this.checked = 0;// 默认为0，0：未选中 1：选中
	}

	public FileBean(int _id, int parentId, String name, int checked) {
		super();
		this._id = _id;
		this.parentId = parentId;
		this.name = name;
		this.checked = checked;
	}

}
